import { defineStore } from 'pinia'

export const useOptionsStore = defineStore({
  id: 'Options',
  state: ():any => ({
    referenceObject:{
    },
    selectOptions:{
    },
    changeTitle:''
  }),
  actions: {
    addReferenceOption(option:any){
        this.referenceObject =option
    },
    clearSelectOption(id:string){
      delete this.referenceObject[id]
    },
    updateSelectOption(id:string,value:string){
      this.selectOptions[id] = value
    }
  }
})
